package anatex.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import anatex.domain.Document;
import javax.persistence.ManyToOne;
import javax.persistence.ManyToMany;
import anatex.domain.CustomLocale;
import javax.validation.constraints.Size;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findKeywordsByText" })
public class Keyword {

    @ManyToOne
    private CustomLocale locale;

    @Size(min = 3, max = 255)
    private String text;

}
